package com.luu.game.service.logic.elfPropertyFactory;

/**
 * 精灵属性克制工厂
 */
public class ElfPropertyFactory {

    private String property;

    public ElfPropertyFactory(String atcProperty){
        this.property = atcProperty;
    }

    public BaseElfProperty createElfProperty(){

        BaseElfProperty returnObject = null;

        if (this.property == null) {
            return null;
        }

        switch (this.property){
            case "1":
                returnObject = new FireElfProperty();
                break;
            case "2":
                returnObject = new WaterElfProperty();
                break;
            case "3":
                returnObject = new GrassElfProperty();
                break;
            default:
                break;
        }

        return returnObject;
    }

}
